package com.boang.feign;

import com.boang.resp.Result;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.UnsupportedEncodingException;

@FeignClient(name = "user-center")
public interface TokenFeign {

    @RequestMapping("/verification/{token}")
    public Result<String> verificationToken(@PathVariable("token") String token) throws UnsupportedEncodingException;
}
